<?php
    //通过店铺名查询
    header("Access-Control-Allow-Origin: *"); // 允许跨域的地址，* 表示全部
    header("Access-Control-Allow-Methods", "PUT,POST,GET,DELETE,OPTIONS"); // 允许的请求方法
    header("Access-Control-Allow-Headers: version, access-token, user-token"); // 允许的请求头属性

    include '../util/connect.php';

    $ShopName = $_POST['ShopName'];

    $sql = "select * from shop where ShopName like '%$ShopName%' and Status = '0' ";
    $data = my_Select($sql);

    echo json_encode($data,JSON_UNESCAPED_UNICODE);